package com.ruoyi.computing.controller.portal;

import com.ruoyi.computing.service.ComputingModelService;
import com.ruoyi.common.annotation.AllowAnonymous;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/portal/computing/computingModel")
public class ComputingModelController {

    @Autowired
    private ComputingModelService computingModelService;

    @RequestMapping("/generateModel")
    @AllowAnonymous
    public void generateModel() throws Exception {
        computingModelService.generateModel();
    }

}
